<!DOCTYPE html>

<html>
    <head>
        <title>Atualizar Status Agenda</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/bootstrap-responsive.css" rel="stylesheet">
  	<link href="css/stilo.css" rel="stylesheet">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <![endif]-->
    </head>
    <body>
       <div class="container">
           <?php include "topo.html"; ?>
           <?php include "menu.php"; ?>
           
           <!------------------------------------------Inicio do Conteudo------------------------------------->
		<section>
			<div id="conteudo">
				<div class="row-fluid">
					<div class="span12">
						<div class="titulo">
                                                    <p><b>Atualizar Status Agenda</b></p>
						</div>
						<div class="bordas">
                                                    <div>
													
													<div class="row-fluid">                                                      
													<div class="span12 table-responsive">
                                                        <table class="table">
                                                            <tr>
                                                                <th>Codigo</th>
                                                                <th>Nome</th>
                                                                <th>Status</th>
                                                                <th>Salvar</th>
                                                            </tr>
                                                            <tr>
                                                                <td><?php echo $consulta->id; ?></td>
                                                                <td><?php echo $resultado->usu_nome; ?></td>
                                                                <form method="POST" action="index.php?pg=AtualizarAgenda">
                                                                <td>
                                                                    <!-- Select Basic -->
                                                                    <div class="control-group">
                                                                      <div class="controls">
                                                                        <select id="status" name="status" class="input-large">
                                                                            <option value="<?php if($status == "Aguardando Atendimento"){echo 'A';} else if($status == "Cancelado"){echo 'C';} ?>"><?php echo $status; ?></option>
                                                                            <option value="A">Aguardando Atendimento</option>
                                                                            <option value="C">Cancelado</option>
                                                                        </select>
                                                                      </div>
                                                                    </div>
                                                                    
                                                                    <!-- Text input-->
                                                                    <div class="control-group">
                                                                      <div class="controls">
                                                                          <input id="id" name="id" placeholder="" value="<?php echo $consulta->id; ?>" class="input-large" type="hidden">
                                                                      </div>
                                                                    </div>

                                                                </td>
                                                                
                                                                <td>
                                                                    <!-- Button -->
                                                                    <div class="control-group">
                                                                      <label class="control-label" for="salvar"></label>
                                                                      <div class="controls">
                                                                        <button id="salvar" name="salvar" class="btn btn-primary">Salvar</button>
                                                                      </div>
                                                                    </div>
                                                                </td>
                                                                 </form>
                                                            </tr>
                                                        </table>
														</div>
														</div>

                                                    </div>
						</div>
					</div>	
				</div>
			</div> <!-- Fim da linha conteudo -->
		</section><!-- ----------------------------------------fim do Conteudo----------------------------------- -->

           
           <?php include "rodape.html"; ?>
           
           
       </div><!-- fim da div container -->    
        
        
    <!-- Arquivos Javascripts ================================================== -->
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.validate.js"></script>
    </body>
</html>


